﻿using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
//import
using ddcCajamarca.BusinessEntities.Documentos;
using ddcCajamarca.BusinessLogic.Documentos.Service;
using System.Web.ModelBinding;


namespace ddcCajamarca.Web.Documentos
{
    public partial class frmListAreas : System.Web.UI.Page
    {
        [Dependency]
        public IAreaBL areaBL { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public IEnumerable<Area> GetArea([Control("txtCriterio")]string criterio)
        {
            return areaBL.getAllFromAreaByCriterio(criterio);
        }
    }
}